package team.southcat.wsyygh.hospital.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import team.southcat.wsyygh.common.result.Result;


import java.util.List;

@FeignClient("service-hospital")
@Component
public interface DoctorFeignClient {

    @GetMapping("/doctor/getById/{id}")
    public Result getById(@PathVariable("id") long id);

    @GetMapping("/doctor/getByDepartmentId/{id}")
    public Result getByDepartmentId(@PathVariable int id);

    @GetMapping("/doctor/getDoctorByName")
    public Result getDoctorByName(@RequestBody List<String> doctorName);

    @GetMapping("/doctor/getDoctorByDepartmentIds")
    public Result getDoctorByDepartmentIds(@RequestBody List<Long> departmentIds);
}
